package com.gxpt.app.adapter;

import android.content.Context;
import android.widget.ImageView;
import android.widget.TextView;

import com.gxpt.app.AppUtils;
import com.gxpt.app.R;
import com.gxpt.app.base.ListBaseAdapter;
import com.gxpt.app.base.SuperViewHolder;
import com.gxpt.app.bean.createtime_my_bean;
import com.gxpt.app.bean.hotgoods_bean;
import com.utils.ScreenUtils;
import com.utils.picasso.PicassoUtils;

/**
 * Created by Lzx on 2016/12/30.
 */

public class createtime_Adapter extends ListBaseAdapter<createtime_my_bean.stage> {


    Context context;
    public createtime_Adapter(Context context) {
        super(context);
        this.context = context;
    }

    @Override
    public int getLayoutId() {
        return R.layout.item_createtime_list;
    }

    @Override
    public void onBindItemHolder(SuperViewHolder holder, int position) {
        createtime_my_bean.stage item = mDataList.get(position);

        TextView txt_jd = holder.getView(R.id.txt_jd);
        txt_jd.setText(String.format(context.getResources().getString(R.string.txt_jieduan),position+1));

        TextView txt_T_B = holder.getView(R.id.txt_T_B);
        txt_T_B.setText(item.t_b);

        TextView txt_T_E = holder.getView(R.id.txt_T_E);
        txt_T_E.setText(item.t_e);

        TextView txt_price = holder.getView(R.id.txt_price);
        txt_price.setText(""+item.price);
    }
}
